package pl.edu.agh.admin.gui;

import java.awt.Color;

import pl.edu.agh.admin.api.User;



public class FinalPytonUserColorier
{
	public static Color getUserColor(User user)
	{
		int hash = Math.abs(user.getName().hashCode());
		int r = hash % 256;
		int g = (hash + r) % 256;
		int b = (hash + g) % 256;
		return new Color(r, g, b);		
	}
}
